package com.qiuhu.designerpattern.singleton;

/**
 * 懒汉式-单例模式
 * 
 * @author Administrator
 *
 */
public class LanHanSingleton {

	private static LanHanSingleton singleton;

	private LanHanSingleton() {
	}

	public static LanHanSingleton getInstance() {
		if (null == singleton) {
			singleton = new LanHanSingleton();
		}

		return singleton;
	}
}
